#!/bin/sh

#setup host names
touch /etc/hosts
truncate -s 0 /etc/hosts
cat>>/etc/hosts<<EOF
127.0.0.1       localhost

# The following lines are desirable for IPv6 capable hosts
::1     localhost       ip6-localhost   ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

172.24.94.212 ambari
172.24.94.208 hdd1
172.24.94.207 hdd2
172.24.94.210 hdd3
172.24.94.211 hdd4
172.24.94.209 hdd5
172.24.94.204 hds1
172.24.94.206 hds2
172.24.94.205 hds3
EOF
